package com.bocai.utils;

/**
 * Created by tu_pei on 2017/7/20.
 */
public enum CodeEnum {

    SUCCESS("0", "SUCCESS"),
    CODE_1("1", "NETWORK ERROR"),
    CODE_2("2", "FAILURE OF SIGNATURE"),
    CODE_3("3", "REQUEST ERROR"),
    CODE_4("4", "PARAMETERS ERROR"),
    CODE_5("5", "SMS AUTHENTICATION CODE IS SENT TOO FREQUENTLY"),
    CODE_6("6", "ERROR"),

    /**
     * 用户模块
     */
    CODE_10001("10001", "VERIFICATION CODE ERROR"),//验证码错误
    CODE_10002("10002", "PASSWORD ERROR"),
    CODE_10003("10003", "USER DOES NOT EXIST"),
    CODE_10004("10004", "THE PHONE NUMBER IS INCORRECT"),
    CODE_10005("10005", "THE USER HAS ALREADY EXISTED"),
    CODE_10006("10005", "PLEASE GET THE VERIFYING CODE"),
    CODE_10007("10007", "UNREGISTERED"),
    CODE_10008("10008", "THE USER HAS ALREADY EXISTED"),
    CODE_10009("10009", "INSUFFICIENT ACCOUNT BALANCE"),
    CODE_10010("10010", "PLEASE ENTER THE CORRENT NUMBER"),
    CODE_10011("10011", "USER EXISTS"),

    CODE_30001("30001", "ORDER DOES NOT EXIST"),
    CODE_30002("30002", "SAVE ERROR"),
    CODE_30003("30003", "HAS BEEN BANNED"),

    /**
     * 病历相关接口
     */
    CODE_21001("21001", "ADDITION ERROR"),
    CODE_21002("21002", "MODIFY ERROR"),
    /**
     * 订单
     */
    CODE_60001("60001", "ERROR"),
    CODE_60009("60009", "INSUFFICIENT QUANTITY"),

    CODE_90001("90001", "PARAMETERS ERROR"),
    CODE_90002("90002", "PARAMETERS ERROR"),
    CODE_90003("90003", "USER DOES NOT EXIST"),
    CODE_90004("90004", "PASSWORD ERROR"),
    CODE_90005("90005", "HAVE BEEN BANNED"),

    /**
     * 查询
     */
    CODE_70001("70001", "ERROR"),;

    private String code;
    private String message;

    private CodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
